package com.hanhai.material.device.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 *  实体类。
 *
 * @author youchuang
 * @since 2023/10/18 11:35:20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_bom_child",dataSource = "device")
public class SysBomChild implements Serializable {

    @Id
    private String id;

    private String bomId;

    private Integer interId;

    private BigDecimal auxqtyPick;

    private BigDecimal auxStockQty;

    private String stockId;

    private String stockName;

    private String stockPositionId;

    private Integer productIcmoId;

    private String unitId;

    private String unitName;

    private String materialId;

    private String materialName;

    private BigDecimal unitNum;

    private BigDecimal standardNum;

    private double hasGetNum;

    private Integer entryId;
    @Column(onInsertValue = "now()")
    private Date createTime;

    @Column(ignore = true)
    private boolean isSame;
    @Column(ignore = true)
    private boolean isG;
    @Column(ignore = true)
    private SysBomChild childBomChild;
    @Column(ignore = true)
    private List<SysBom> bomList;
    @Column(ignore = true)
    private boolean isTwoMaterial;
    @Column(ignore = true)
    private SysWorkPlan workPlan;

}
